namespace GameServer.ShootingGame.RenderableClasses
{
    public class AttachableObject : GameObject
    {

        private GameObject attachedTo;

        public AttachableObject()
        {
            attachedTo = null;
        }

        virtual public GameObject AttachedTo
        {
            get
            {
                return attachedTo;
            }
            set
            {
                if (attachedTo == null)
                {
                    if (attachedTo != value)
                    {
                        attachedTo = value;
                        value.AddAttachment(this);
                    }
                }
            }

        }
    }
}
